package com.ysy.tz.mfg.entity;

import com.ysy.tz.core.engine.KeyValuePair;

public class DataListEntity implements KeyValuePair {
    private Integer enterpriseId;
    private String listCode;
    private String listDesc;
    private String listTypeCode;
    private String isEnabled = "Y";

    public String getKeyPair() {
        return this.listCode;
    }

    public String getValuePair() {
        return this.listDesc;
    }

    public DataListEntity() {
    }

    public Integer getEnterpriseId() {
        return this.enterpriseId;
    }

    public String getListCode() {
        return this.listCode;
    }

    public String getListDesc() {
        return this.listDesc;
    }

    public String getListTypeCode() {
        return this.listTypeCode;
    }

    public String getIsEnabled() {
        return this.isEnabled;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public void setListCode(String listCode) {
        this.listCode = listCode;
    }

    public void setListDesc(String listDesc) {
        this.listDesc = listDesc;
    }

    public void setListTypeCode(String listTypeCode) {
        this.listTypeCode = listTypeCode;
    }

    public void setIsEnabled(String isEnabled) {
        this.isEnabled = isEnabled;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof DataListEntity)) {
            return false;
        } else {
            DataListEntity other = (DataListEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Object this$enterpriseId = this.getEnterpriseId();
                    Object other$enterpriseId = other.getEnterpriseId();
                    if (this$enterpriseId == null) {
                        if (other$enterpriseId == null) {
                            break label71;
                        }
                    } else if (this$enterpriseId.equals(other$enterpriseId)) {
                        break label71;
                    }

                    return false;
                }

                Object this$listCode = this.getListCode();
                Object other$listCode = other.getListCode();
                if (this$listCode == null) {
                    if (other$listCode != null) {
                        return false;
                    }
                } else if (!this$listCode.equals(other$listCode)) {
                    return false;
                }

                label57: {
                    Object this$listDesc = this.getListDesc();
                    Object other$listDesc = other.getListDesc();
                    if (this$listDesc == null) {
                        if (other$listDesc == null) {
                            break label57;
                        }
                    } else if (this$listDesc.equals(other$listDesc)) {
                        break label57;
                    }

                    return false;
                }

                Object this$listTypeCode = this.getListTypeCode();
                Object other$listTypeCode = other.getListTypeCode();
                if (this$listTypeCode == null) {
                    if (other$listTypeCode != null) {
                        return false;
                    }
                } else if (!this$listTypeCode.equals(other$listTypeCode)) {
                    return false;
                }

                Object this$isEnabled = this.getIsEnabled();
                Object other$isEnabled = other.getIsEnabled();
                if (this$isEnabled == null) {
                    if (other$isEnabled == null) {
                        return true;
                    }
                } else if (this$isEnabled.equals(other$isEnabled)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof DataListEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $enterpriseId = this.getEnterpriseId();
        result = result * 59 + ($enterpriseId == null ? 43 : $enterpriseId.hashCode());
        Object $listCode = this.getListCode();
        result = result * 59 + ($listCode == null ? 43 : $listCode.hashCode());
        Object $listDesc = this.getListDesc();
        result = result * 59 + ($listDesc == null ? 43 : $listDesc.hashCode());
        Object $listTypeCode = this.getListTypeCode();
        result = result * 59 + ($listTypeCode == null ? 43 : $listTypeCode.hashCode());
        Object $isEnabled = this.getIsEnabled();
        result = result * 59 + ($isEnabled == null ? 43 : $isEnabled.hashCode());
        return result;
    }

    public String toString() {
        return "DataListEntity(enterpriseId=" + this.getEnterpriseId() + ", listCode=" + this.getListCode() + ", listDesc=" + this.getListDesc() + ", listTypeCode=" + this.getListTypeCode() + ", isEnabled=" + this.getIsEnabled() + ")";
    }
}
